package Pliot;

public class Pliot {
    private String name;
    private int age;
    private int height;
    public Pliot(String name,int age,int height){
        this.name=name;
        this.age=age;
        this.height=height;
    }
    public void Takeoff(Battleplane b){
        System.out.println(name+"驾驶"+b.getName()+"起飞。");
    }
    public void land(Battleplane b){
        System.out.println(name+"驾驶"+b.getName()+"降落。");
    }
    public void Takeoff(Gustsplane b){
        System.out.println(name+"驾驶"+b.getName()+"起飞。");
    }
    public void land(Gustsplane b){
        System.out.println(name+"驾驶"+b.getName()+"降落。");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}
